package br.siseventos.model;
// Generated 18/08/2012 11:34:56 by Hibernate Tools 3.2.1.GA


import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * TaPermissaoLocal generated by hbm2java
 */
@Entity
@Table(name="ta_permissao_local"
    ,catalog="SisEventosDB"
    , uniqueConstraints = @UniqueConstraint(columnNames={"cod_local", "cod_perfil"}) 
)
public class TaPermissaoLocal  implements java.io.Serializable {


     private Integer idtPermissaoLocal;
     private TdPerfil tdPerfil;
     private TbLocal tbLocal;

    public TaPermissaoLocal() {
    }

    public TaPermissaoLocal(TdPerfil tdPerfil, TbLocal tbLocal) {
       this.tdPerfil = tdPerfil;
       this.tbLocal = tbLocal;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="idt_permissao_local", unique=true, nullable=false)
    public Integer getIdtPermissaoLocal() {
        return this.idtPermissaoLocal;
    }
    
    public void setIdtPermissaoLocal(Integer idtPermissaoLocal) {
        this.idtPermissaoLocal = idtPermissaoLocal;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="cod_perfil", nullable=false)
    public TdPerfil getTdPerfil() {
        return this.tdPerfil;
    }
    
    public void setTdPerfil(TdPerfil tdPerfil) {
        this.tdPerfil = tdPerfil;
    }
@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="cod_local", nullable=false)
    public TbLocal getTbLocal() {
        return this.tbLocal;
    }
    
    public void setTbLocal(TbLocal tbLocal) {
        this.tbLocal = tbLocal;
    }




}


